package com.mongo.demo.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.math.BigDecimal;
import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = false)
@TableName("thirdparty_invoice_info")
public class ThirdPartyInvoiceInfo {

    @TableId
    private String id;

    @TableField("invoiceid")
    private String invoiceId;

    @TableField("invoicetype")
    private String invoiceType;

    @TableField("invoicecode")
    private String invoiceCode;

    @TableField("invoiceno")
    private String invoiceNo;

    @TableField("makeinvoicedeviceno")
    private String makeInvoiceDeviceNo;

    @TableField("invoicedate")
    private LocalDate invoiceDate;

    @TableField("detaillistflag")
    private Boolean detailListFlag;

    @TableField("totalamount")
    private BigDecimal totalAmount;

    @TableField("taxrate")
    private BigDecimal taxRate;

    @TableField("totaltax")
    private BigDecimal totalTax;

    @TableField("buyertaxno")
    private String buyerTaxNo;

    @TableField("buyername")
    private String buyerName;

    @TableField("buyeraddtel")
    private String buyerAddTel;

    @TableField("buyerbankno")
    private String buyerBankNo;

    @TableField("sellername")
    private String sellerName;

    @TableField("sellertaxno")
    private String sellerTaxNo;

    @TableField("selleraddtel")
    private String sellerAddTel;

    @TableField("sellerbankno")
    private String sellerBankNo;

    @TableField("ciphertext")
    private String cipherText;

    @TableField("encryptionver")
    private String encryptionVer;


}
